package org.tigr.htc.server.condor;

/*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

import org.tigr.antware.shared.util.Logger;
import org.tigr.htc.server.IGridStatusUtils;

/**
 * The class <code>SgeGridStatusUtils</code> provides the methods to check the status of jobs
 * running under SGE.
 * 
 */

public class CondorGridStatusUtils implements IGridStatusUtils {

    // The variable <code>logger</code> holds the instance of the logger for this class.
    private static Logger logger = new Logger(CondorGridStatusUtils.class);

    /* (non-Javadoc)
     * @see org.tigr.htc.server.IGridStatusUtils#getJobCount(java.lang.String, java.lang.String)
     */
    public int getJobCount(String user, String state) throws Throwable {
    	// TODO: Implement
        if (logger.isDebugEnabled()) {
            logger.debug("Returning the job count for user " + user + " state " + state);
        }
        int count = 0;
 
        if (logger.isDebugEnabled()) {
            logger.debug("Count " + count);
        }
        return count;
    }

}
